
//  ZCLibInterface.h
//  ExpertLib
//
//  Created by lizhihui on 2017/4/17.
//  Copyright © 2017年 zhichi. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <CoreText/CoreText.h>

#define  kNetworkLoginCode 1

/**
 * 接口
 */
////////////////////////////////////////////////////////////////
//
//#define API_HOST @"http://api.qzone.cc"
#define API_HOST @"http://61.147.113.78"
//#define API_HOST @"http://219.142.225.82:8123"
//#define API_HOST @"http://192.168.8.102:8080"

/**
 *  发送验证码
 */
#define API_SendSms [NSString stringWithFormat:@"%@/aos2/sso/sendregsmscode",API_HOST]

#define API_Login [NSString stringWithFormat:@"%@/aos2/sso/login",API_HOST]

#define API_Register [NSString stringWithFormat:@"%@/user/appRegUser",API_HOST]

#define API_UserInfo [NSString stringWithFormat:@"%@/aos2/user/userinfo",API_HOST]

// 添加关注
#define API_Addfollow [NSString stringWithFormat:@"%@/aos2/my/addfollow",API_HOST]

// 取消关注
#define API_Delfollow [NSString stringWithFormat:@"%@/aos2/my/delfollow",API_HOST]

//收藏分类列表数量
#define API_GetFavnavlist [NSString stringWithFormat:@"%@/aos2/my/favnavlist",API_HOST]

// 获取收藏内容列表
#define API_GetMyFavList [NSString stringWithFormat:@"%@/aos2/my/favlist",API_HOST]





/**
 检验验证码

 @return
 */
#define API_CheckSmsCode [NSString stringWithFormat:@"%@/aos2/sso/checkregsmscode",API_HOST]



#define API_GetUserHomeList [NSString stringWithFormat:@"%@/aos2/user/homelist",API_HOST]
#define API_Bannerlist [NSString stringWithFormat:@"%@/aos2/index/bannerlist",API_HOST]



// 获取数据列表
#define API_GetHomeList(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/list",API_HOST,nav_type]
// 首页关注列表
#define API_GetHomeFollowcontentlist [NSString stringWithFormat:@"%@/aos2/index/followcontentlist",API_HOST]


// 专题列表
#define API_GetSpecialList [NSString stringWithFormat:@"%@/aos2/special/list",API_HOST]
// 专题详情
#define API_GetSpeciaDetail [NSString stringWithFormat:@"%@/aos2/special/detail",API_HOST]

// 专题加鸡腿、扣工资
#define API_GetSpecialAddvote [NSString stringWithFormat:@"%@/aos2/special/addvote",API_HOST]


// 排行榜
#define API_GetTopList [NSString stringWithFormat:@"%@/aos2/top/list",API_HOST]
// 达人排行榜
#define API_GetTopListDaren [NSString stringWithFormat:@"%@/aos2/top/daren",API_HOST]


// 搜索
#define API_SearchList [NSString stringWithFormat:@"%@/aos2/search/list",API_HOST]





#define API_GetNavList [NSString stringWithFormat:@"%@/aos2/tree/navlist",API_HOST]
#define API_GetCatList [NSString stringWithFormat:@"%@/aos2/tree/catlist",API_HOST]
#define API_GetTagList [NSString stringWithFormat:@"%@/aos2/tree/taglist",API_HOST]

// 上传图片
#define API_UploadImage(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/upload",API_HOST,nav_type]

// 发布素材
#define API_publishImage(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/publish",API_HOST,nav_type]

// 发布帖子
#define API_publishPost [NSString stringWithFormat:@"%@/aos2/forum/threadpost",API_HOST]

// 素材取消收藏不喜欢
#define API_cancelvote(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/cancelvote",API_HOST,nav_type]

// 素材喜欢、收藏
#define API_AddVote(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/addvote",API_HOST,nav_type]

// 发布评论
#define API_publishComment(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/addthread",API_HOST,nav_type]




//
// 消息相关
//

// 获取消息首页
#define API_GetMessageTopList [NSString stringWithFormat:@"%@/aos2/notice/index",API_HOST]

// 获取消息列表
#define API_GetMessageListWithType [NSString stringWithFormat:@"%@/aos2/notice/list",API_HOST]



//
// 帖子相关
//

// 获取帖子分类列表
#define API_GetForumCatList [NSString stringWithFormat:@"%@/aos2/forum/catlist",API_HOST]

// 帖子列表
#define API_GetForumList [NSString stringWithFormat:@"%@/aos2/forum/threadlist",API_HOST]

// 帖子详情
#define API_GetForumDetail [NSString stringWithFormat:@"%@/aos2/forum/threaddetail",API_HOST]

// 用户帖子列表
#define API_GetForumthreadlist [NSString stringWithFormat:@"%@/aos2/user/forumthreadlist",API_HOST]

// 收藏帖子
#define API_AddFavForum [NSString stringWithFormat:@"%@/aos2/forum/addfav",API_HOST]



